import hasRole from './permission/hasRole'
import hasPerms from './permission/hasPerms'

const install = function(Vue) {
  Vue.directive('hasRole', hasRole)
  Vue.directive('hasPerms', hasPerms)
}

if (window.Vue) {
  window['hasRole'] = hasRole
  window['hasPerms'] = hasPerms
  Vue.use(install);
}

export default install
